package cn.dglydrpy.fundmanagement.service;

import cn.dglydrpy.fundmanagement.dao.entiey.Fund;
import cn.dglydrpy.fundmanagement.service.dto.FundDto;
import cn.dglydrpy.fundmanagement.service.dto.FundSearchBean;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.http.ResponseEntity;

import java.util.List;

public interface IFundService {

    int saveFund(FundDto fundDto);
    void updateFund(FundDto fundDto);
    void deleteFund(Long id);
    FundDto getFundById(Long id);
    Page<FundDto> getFundsByConditions(FundSearchBean fundSearchBean, int pageNo, int pageSize, String sortField, String sortOrder);
    List<FundDto> getAllFundsByConditions(FundSearchBean fundSearchBean, String sortField, String sortOrder);
    void fetchAndSaveFundData();
    Fund getOne(QueryWrapper<Fund> queryWrapper);
}